/**
 * 结算报告
 * 
 */
;
(function(){
	'use strict';
	
	var app = angular.module('fwa.mainApp');
	app.controller('reportCtrl', ['$scope','InsuranceService','CommunityService','$http','$state','$stateParams','AgreementService','BaseURL','Modal',
        function ($scope,InsuranceService,CommunityService,$http,$state,$routeParams,agreementService,baseUrl,Modal) {
		$scope.communityService = CommunityService;
		CommunityService.getBaseCode('{codeType:\'agreementType\'}');
		CommunityService.getBaseCode('{codeType:\'areas\'}');
		InsuranceService.initMedicalOrgInfoList().success(function(response){
			$scope.medicalOrgInfoList = response.medicalOrgList;
		});
        $scope.oldAgreementDetail={};
		/**
		 * 下载导入模板
		 */
		$scope.downLoadOnClick=function(){
			   var path="";
               window.location = baseUrl + 'views/hcpms/file/report/结算分析月度报告v1.7.docx';
		}
		
		$scope.reportName = "无报告预览";
		$scope.iframeSrc = "views/hcpms/file/report/noReport.htm";
		/**
		 * 查询按钮
		 */
		$scope.onSubmit=function(){
			$scope.reportName = "中山医院";
			$scope.iframeSrc = "views/hcpms/file/report/jiesuanfenxi.htm";
			
		}
		
		$scope.onReset=function(){
			$scope.reportName = "无报告预览";
			$scope.iframeSrc = "views/hcpms/file/report/noReport.htm";
		}
	}
    ]);
})();